﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Create.ascx.vb" Inherits="Control_Formula_Create" %>
<%@ Register TagPrefix="CE" Namespace="CuteEditor" Assembly="CuteEditor" %>
<asp:UpdatePanel ID="UpdatePanelCreate" runat="server">
    <ContentTemplate>
<script type="text/javascript" >
    function Change_Hot() {
        var chkIsHot = document.getElementById("<%=chkIsHot.ClientID %>");
        if (chkIsHot.checked == true) {
            $('#imageBig').show();
            ValidatorEnable(document.getElementById("<%=regImageBig.ClientID %>"), true);
        } else {
            $('#imageBig').hide();
            ValidatorEnable(document.getElementById("<%=regImageBig.ClientID %>"), false);
        }
    }
    function Change_Assign(flag) {
        var drlSourceVideo = document.getElementById('<%=drlSourceVideo.ClientID %>');
        if (drlSourceVideo.selectedIndex == 1) {
            $('#upload').hide();
            $('#youtube').show();
            ValidatorEnable(document.getElementById('<%=regUpload.ClientID %>'), false);
            ValidatorEnable(document.getElementById('<%=requiredVideo.ClientID %>'), true);
        } else {
            if (drlSourceVideo.selectedIndex == 2) {
                $('#upload').show();
                $('#youtube').hide();
                ValidatorEnable(document.getElementById('<%=regUpload.ClientID %>'), true);
                ValidatorEnable(document.getElementById('<%=requiredVideo.ClientID %>'), false);
            } else {
                //Truong hop khong chon nguon video 
                $('#upload').hide();
                $('#youtube').hide();
                ValidatorEnable(document.getElementById('<%=regUpload.ClientID %>'), false);
                ValidatorEnable(document.getElementById('<%=requiredVideo.ClientID %>'), false);
            }
        }
        if (flag == 2) {
            ValidationSummaryOnSubmit();
        }

    }
    function ajaxJquery() {
        $(document).ready(function () {
            Change_Assign(2);
            //Upload Image
            $('#file_upload').uploadify({
                'uploader': '<%=ResolveUrl("~/uploadify/uploadify.swf")%>',
                'script': '<%=ResolveUrl("~/uploadify/Upload.ashx?folder=ImageStorage")%>',
                'cancelImg': '<%=ResolveUrl("~/uploadify/cancel.png")%>',
                'folder': '<%=ResolveUrl("~/Uploads")%>',
                'auto': false,
                'multi': false,
                'fileExt': '*.jpg;*.gif;*.png;*.jpeg;*.bmp;*.tiff',
                'fileDesc': 'Web Image Files (.JPG, .GIF, .PNG, .JPEG, .BMP, .TIFF, .PNG)',
                'fileDataName': 'myfile',
                'sizeLimit': '<%= ConfigurationManager.AppSettings("maxupload") %>',
                'onComplete': function (event, ID, fileObj, response, data) {
                    $('#<%=hidImagePath.ClientID %>').val('<%= ConfigurationManager.AppSettings("ImageDomain") %>' + response);
                    $('#<%=imgUpload.ClientID %>').attr("src", '<%= ConfigurationManager.AppSettings("ImageDomain") %>' + response);

                }
            });

            //Upload Video
            $('#fileVideo').uploadify({

                'uploader': '<%=ResolveUrl("~/uploadify/uploadify.swf")%>',
                'script': '<%=ResolveUrl("~/uploadify/Upload.ashx?folder=VideoStorage")%>',
                'cancelImg': '<%=ResolveUrl("~/uploadify/cancel.png")%>',
                'folder': '<%=ResolveUrl("~/Uploads")%>',
                'auto': false,
                'multi': false,
                'fileExt': '*.MP3;*.MP4;*.FLV',
                'fileDesc': 'Web Image Files (.MP3, .MP4, .FLV)',
                'fileDataName': 'myfile',
                'sizeLimit': '<%= ConfigurationManager.AppSettings("maxupload_video") %>',
                'onComplete': function (event, ID, fileObj, response, data) {
                    $('#<%=hidVideoPath.ClientID %>').val('');
                    $('#<%=hidVideoPath.ClientID %>').val('<%= ConfigurationManager.AppSettings("VideoDomain") %>' + response);
                    $('#<%=hplvideo.ClientID %>').empty();
                    $('#<%=hplvideo.ClientID %>').append('<%= ConfigurationManager.AppSettings("VideoDomain") %>' + response);

                }
            });
            //Upload Image Slider
            $('#file_big').uploadify({
                'uploader': '<%=ResolveUrl("~/uploadify/uploadify.swf")%>',
                'script': '<%=ResolveUrl("~/uploadify/Upload.ashx?folder=ImageStorage")%>',
                'cancelImg': '<%=ResolveUrl("~/uploadify/cancel.png")%>',
                'folder': '<%=ResolveUrl("~/Uploads")%>',
                'auto': false,
                'multi': false,
                'fileExt': '*.jpg;*.gif;*.png;*.jpeg;*.bmp',
                'fileDesc': 'Web Image Files (.JPG, .GIF, .PNG , .JPEG , .BMP)',
                'fileDataName': 'myfile',
                'sizeLimit': '<%= ConfigurationManager.AppSettings("maxupload") %>',
                'onComplete': function (event, ID, fileObj, response, data) {
                    $('#<%=hidImageBig.ClientID %>').val('<%= ConfigurationManager.AppSettings("ImageDomain") %>' + response);
                    $('#<%=imagebig.ClientID %>').attr("src", '<%= ConfigurationManager.AppSettings("ImageDomain") %>' + response);
                }
            });

        });
        $(function () {
            $("#<%=txtDateontv.ClientID %>").datepicker({ dateFormat: 'dd/mm/yy' });

        });
        
    }

    function setKeyWordValue(value, sListId) {
        $("#<%=txtKeyword.ClientID()%>").val(sListId);
        $("#<%=txtStrKeyWord.ClientID()%>").val(value);
        removeAllOption('selKeyWord');
        appendOptionLast(sListId, value, 'selKeyWord');

    }
    function getKeywordValue() {
        return $("#<%=txtKeyword.ClientID()%>").val();
    }
    function settxtSubjectValue(value, id) {
        $("#<%=txtSubject.ClientID()%>").val(value);
        $("#<%=txtSubjectId.ClientID()%>").val(id);
    }

    function setMaterialValue(value, id) {
        $("#<%=txtMaterialSelect.ClientID()%>").val(value);
        $("#<%=hidMaterial.ClientID()%>").val(id);
    }

    function setWayToCoolValue(value, id) {
        $("#<%=txtWayToCookSelect.ClientID()%>").val(value);
        $("#<%=hidWayToCook.ClientID()%>").val(id);
    }
    
</script>

        <div class="BoxField">
            <div class="DivRow">
                <div >
                    <h3>
                        THÊM MỚI CÔNG THỨC<br /> <i>phần validate đang được disable để giúp cho việc biên tập nhanh
                            hơn</i>
                    </h3>
                </div>
                <div class="lblEdit">
                    <span class="fieldRequired">&nbsp;</span>Trường yêu cầu nhập dữ liệu
                </div>
                <div class="Error">
                    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblTitle" CssClass="TextLabel" runat="server" Text="Tiêu đề" />
                    <span class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtTitle" CssClass="TextBox" runat="server" Text="" MaxLength="300" />
                    <asp:RequiredFieldValidator ID="rfvTitle" runat="server" ControlToValidate="txtTitle"
                        Display="None" ErrorMessage="Vui lòng nhập tiêu đề" > </asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblDescription" CssClass="TextLabel" runat="server" Text="Mô tả" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtDescription" CssClass="TextBox" runat="server" Text="" TextMode="MultiLine"
                        Height="150px" Width="80%" MaxLength="2000" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label1" CssClass="TextLabel" runat="server" Text="Chọn nguyên liệu" />
                    <span class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtMaterialSelect" CssClass="TextBox" runat="server" Text="" MaxLength="300"
                        Enabled="false" />&nbsp;<asp:HyperLink ID="hplMaterial" runat="server" CssClass="btn">Chọn nguyên liệu</asp:HyperLink>
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtMaterialSelect"
                        Display="None" ErrorMessage="Vui lòng chọn nguyên liệu."></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblMaterial" CssClass="TextLabel" runat="server" Text="Mô tả nguyên liệu" />
                    <span class="fieldRequired"></span>&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                        runat="server" ControlToValidate="txtMaterial" Display="None" ErrorMessage="Vui lòng nhập mô tả nguyên liệu."></asp:RequiredFieldValidator>
                </div>
                <div class="DivTextBox">
                    <CE:Editor ID="txtMaterial" runat="server" Width="100%" Height="300" AutoConfigure="Simple"
                        EditorWysiwygModeCss="~/example.css" MaxTextLength="2000">
                        <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
                            CssClass="CuteEditorFrame" Height="100%" Width="100%" />
                    </CE:Editor>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label2" CssClass="TextLabel" runat="server" Text="Chọn cách thực hiện" />
                    <span class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtWayToCookSelect" CssClass="TextBox" runat="server" Text="" MaxLength="300"
                        Enabled="false" />&nbsp;<asp:HyperLink ID="hplWayToCook" runat="server" CssClass="btn">Chọn cách thực hiện</asp:HyperLink>
                    &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtWayToCookSelect"
                        Display="None" ErrorMessage="Vui lòng chọn cách thực hiện."></asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblWaytocook" CssClass="TextLabel" runat="server" Text="Mô tả cách thực hiện" />
                    <span class="fieldRequired"></span>&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator3"
                        runat="server" ControlToValidate="txtWaytocook" Display="None" ErrorMessage="Vui lòng nhập mô tả cách thực hiện."></asp:RequiredFieldValidator>
                </div>
                <div class="DivTextBox">
                    <CE:Editor ID="txtWaytocook" runat="server" Width="100%" Height="300" AutoConfigure="Simple"
                        EditorWysiwygModeCss="~/example.css" MaxTextLength="2000">
                        <FrameStyle BackColor="White" BorderColor="#DDDDDD" BorderStyle="Solid" BorderWidth="1px"
                            CssClass="CuteEditorFrame" Height="100%" Width="100%" />
                    </CE:Editor>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label3" CssClass="TextLabel" runat="server" Text="Ảnh đại diện:" />
                    <span class="fieldRequired"></span>
                    <asp:RequiredFieldValidator ID="reqImage" runat="server" ControlToValidate="hidImagePath"
                        Display="None" ErrorMessage="Vui lòng chọn ảnh đại diện."></asp:RequiredFieldValidator>
                </div>
                <div class="DivTextBox">
                    <input id="file_upload" name="file_upload" type="file" />
                    <a href="javascript:$('#file_upload').uploadifyUpload();">Upload Files</a>
                </div>
            </div>
            <div style="height: 100px;">
                <asp:Image ID="imgUpload" runat="server" BorderWidth="0px" Height="100px" Width="100px"
                    ImageUrl="~/Images/NoPhotoAvailable.jpg" />
            </div>
            <div id="Video" class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblIsyoutube" CssClass="TextLabel" runat="server" Text="Nguồn Video:" />
                    <%--<span class="fieldRequired"></span>
                    <asp:RequiredFieldValidator ID="req" runat="server" ControlToValidate="drlSourceVideo"
                        Display="None" ErrorMessage="Vui lòng chọn nguồn video." InitialValue="0"></asp:RequiredFieldValidator>--%>
                </div>
                <div class="DivTextBox">
                    <asp:DropDownList ID="drlSourceVideo" onchange="Change_Assign(1);" CssClass="TextBox"
                         Width="163px" runat="server">
                        <asp:ListItem Selected="True" Value="0">---Chọn nguồn Video---</asp:ListItem>
                        <asp:ListItem Value="1">Mã nhúng</asp:ListItem>
                        <asp:ListItem Value="2">Upload</asp:ListItem>
                    </asp:DropDownList>
                </div>
            </div>
            <div id="youtube" style="display: none" class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblVideourl" CssClass="TextLabel" runat="server" Text="Video url" />
                    <span class="fieldRequired"></span>
                    <asp:RequiredFieldValidator ID="requiredVideo" Text="*" ErrorMessage="Vui lòng nhập mã nhúng video."
                        Display="None" ControlToValidate="txtVideourl" runat="server"></asp:RequiredFieldValidator>
                </div>
                <div class="DivTextBox">
                       <asp:TextBox ID="txtVideourl" CssClass="TextArea" TextMode="MultiLine"  Width="350px" Height="100px"  runat="server" Text="" />
                         </div>
            </div>
            <div id="upload" style="display: none" class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label4" CssClass="TextLabel" runat="server" Text="Upload Video:" />
                    <span class="fieldRequired"></span>
                    <asp:RequiredFieldValidator ID="regUpload" Text="*" ErrorMessage="Vui lòng upload video đính kèm hoặc nhập video url."
                        Display="None" ControlToValidate="hidVideoPath" runat="server"></asp:RequiredFieldValidator>
                </div>
                <div class="DivTextBox">
                    <input id="fileVideo" name="fileVideo" type="file" />
                    <a href="javascript:$('#fileVideo').uploadifyUpload();">Upload Files</a>
                    <br>
                    <asp:HyperLink ID="hplvideo" Text="" runat="server"></asp:HyperLink>
                    <br>
                    <asp:Label ID="Label9" CssClass="TextLabel" runat="server" Text="Hoặc Url:" />
                    <br>
                    <asp:TextBox ID="hidVideoPath" CssClass="TextBox" Text="" runat="server"></asp:TextBox>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblFormulatypeid" CssClass="TextLabel" runat="server" Text="Loại công thức" />
                </div>
                <div class="DivTextBox">
                    <asp:DropDownList ID="ddlFormulaType" runat="server">
                    </asp:DropDownList>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblFastconduct" CssClass="TextLabel" runat="server" Text="Hướng dẫn nhanh" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtFastconduct" CssClass="TextBox" runat="server" Text="" Height="122px"
                        TextMode="MultiLine" Width="80%" MaxLength="500" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblPortion" CssClass="TextLabel" runat="server" Text="Khẩu phần" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtPortion" CssClass="TextBox" runat="server" Text="" />&nbsp;(Người)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Vui lòng nhập khẩu phần lớn hơn 0"
                        ControlToValidate="txtPortion" Display="None" ForeColor="Red" SetFocusOnError="true"
                        InitialValue="0">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="rfvPortion" runat="server" ControlToValidate="txtPortion"
                        ErrorMessage="Vui lòng nhập khẩu phần đúng định dạng kiểu số nguyên" ForeColor="Red"
                        ValidationExpression="^\$?[0-9][0-9]{0,2}(,[0-9]{3})*?$" Display="None">*</asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblTimepreparing" CssClass="TextLabel" runat="server" Text="Thời gian chuẩn bị" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtTimepreparing" CssClass="TextBox" runat="server" Text="" />&nbsp;(Phút)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Vui lòng nhập thời gian chuẩn bị lớn hơn 0"
                        ControlToValidate="txtTimepreparing" Display="None" ForeColor="Red" SetFocusOnError="true"
                        InitialValue="0">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator6" runat="server" ControlToValidate="txtTimepreparing"
                        ErrorMessage="Vui lòng nhập thời gian chuẩn bị đúng định dạng kiểu số" ForeColor="Red"
                        ValidationExpression="^\$?[0-9][0-9]{0,2}(,[0-9]{3})*(\.[0-9]{0,2})?$" Display="None">*</asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblTimetocook" CssClass="TextLabel" runat="server" Text="Thời gian thực hiện" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtTimetocook" CssClass="TextBox" runat="server" Text="" />&nbsp;(Phút)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Vui lòng nhập thời gian thực hiện lớn hơn 0"
                        ControlToValidate="txtTimetocook" Display="None" ForeColor="Red" SetFocusOnError="true"
                        InitialValue="0">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator7" runat="server" ControlToValidate="txtTimetocook"
                        ErrorMessage="Vui lòng nhập thời gian thực hiện đúng định dạng kiểu số" ForeColor="Red"
                        ValidationExpression="^\$?[0-9][0-9]{0,2}(,[0-9]{3})*(\.[0-9]{0,2})?$" Display="None">*</asp:RegularExpressionValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblCost" CssClass="TextLabel" runat="server" Text="Giá" />
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtCost" CssClass="TextBox" runat="server" Text="" />&nbsp;(Đồng)
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator10" runat="server" ErrorMessage="Vui lòng nhập giá lớn hơn 0"
                        ControlToValidate="txtCost" Display="None" ForeColor="Red" SetFocusOnError="true"
                        InitialValue="0">*</asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="rfvAmount" runat="server" ControlToValidate="txtCost"
                        ErrorMessage="Vui lòng nhập đúng định dạng kiểu số" ForeColor="Red" ValidationExpression="^\$?[0-9][0-9]{0,2}(,[0-9]{3})*(\.[0-9]{0,2})?$"
                        Display="None">*</asp:RegularExpressionValidator>
                </div>
            </div>

            
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label5" CssClass="TextLabel" runat="server" Text="Hiển thị ở trang chủ:" />
                    <asp:CheckBox ID="chkIsHot" onclick="Change_Hot();" runat="server" />
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    Original :<asp:CheckBox ID="ckbIsNew"  runat="server" />
                </div>
            </div>
            <div id="imageBig" style="display: none" class="DivRow">
                <div class="DivRow">
                    <div class="DivLabel">
                        <asp:Label ID="Label8" CssClass="TextLabel" runat="server" Text="Ảnh Bigbaner:" />
                        <span class="fieldRequired">&nbsp;</span>
                        <asp:RequiredFieldValidator ID="regImageBig" runat="server" ControlToValidate="hidImageBig"
                            Display="None" ErrorMessage="Vui lòng chọn ảnh Bigbaner."></asp:RequiredFieldValidator>
                    </div>
                    <div class="DivTextBox">
                        <input id="file_big" name="file_big" type="file" />
                        <a href="javascript:$('#file_big').uploadifyUpload();">Upload Files</a>
                    </div>
                </div>
                <div style="height: 100px;">
                    <asp:Image ID="imagebig" runat="server" BorderWidth="0px" Height="100px" Width="100px"
                        ImageUrl="~/Images/NoPhotoAvailable.jpg" />
                </div>
            </div>



            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="lblDateontv" CssClass="TextLabel" runat="server" Text="Ngày phát trên TV" />
                    <span class="fieldRequired"></span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtDateontv" CssClass="TextBox" runat="server" Text="" />&nbsp;(dd/mm/yyyy)&nbsp;<asp:RegularExpressionValidator
                        ID="RegularExpressionValidator2" runat="server" ErrorMessage="Bạn nhập ngày phát trên TV chưa đúng định dạng."
                        ValidationExpression="^(?:(?:(?:0?[1-9]|1\d|2[0-8])\/(?:0?[1-9]|1[0-2]))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:(?:(?:31\/0?[13578]|1[02])|(?:(?:29|30)\/(?:0?[1,3-9]|1[0-2])))\/(?:(?:1[6-9]|[2-9]\d)\d{2}))$|^(?:29\/0?2\/(?:(?:(?:1[6-9]|[2-9]\d)(?:0[48]|[2468][048]|[13579][26]))))$"
                        ControlToValidate="txtDateontv" Display="None" SetFocusOnError="True">*</asp:RegularExpressionValidator>&nbsp;<asp:RequiredFieldValidator
                            ID="RequiredFieldValidator2" runat="server" ErrorMessage="Vui lòng ngày phát trên TV"
                            ControlToValidate="txtDateontv" Display="None" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label6" CssClass="TextLabel" runat="server" Text="Chủ đề:" />
                    <span class="fieldRequired">&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator9"
                        runat="server" ControlToValidate="txtSubject" Display="None" ErrorMessage="Vui lòng chọn chủ đề."></asp:RequiredFieldValidator>
                    </span>
                </div>
                <div class="DivTextBox">
                    <asp:TextBox ID="txtSubject" CssClass="TextBox" Enabled="false" Text="" runat="server"></asp:TextBox>&nbsp;<asp:HyperLink
                        ID="hplSelSubject" runat="server" CssClass="btn">Chọn</asp:HyperLink>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    <asp:Label ID="Label7" CssClass="TextLabel" runat="server" Text="Từ khóa:" />
                    <span class="fieldRequired">&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator11"
                        runat="server" ControlToValidate="txtKeyword" Display="None" ErrorMessage="Vui lòng nhập từ khóa."></asp:RequiredFieldValidator>
                    </span>
                </div>
                <div class="DivTextBox">
                    <select multiple="multiple" id="selKeyWord" style="width: 250px; height: 100px" cssclass="TextBox">
                    </select>
                    &nbsp;<asp:HyperLink ID="hplSelKeyWord" runat="server" CssClass="btn">Chọn</asp:HyperLink>
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                </div>
            </div>
            <div class="DivRow">
                <div class="DivLabel">
                    &nbsp;&nbsp;&nbsp;</div>
                <div class="DivTextBox">
                    <asp:Button ID="btnSave" runat="server" Text=" Lưu " CausesValidation="false" CssClass="btn" />
                    <asp:Button ID="btnHuy" CausesValidation="false" runat="server" Text=" Hủy " CssClass="btn" />
                </div>
            </div>
        </div>
        <div style="display: none">
            <asp:HiddenField ID="hidID" Value="0" runat="server" />
            <asp:HiddenField ID="hidMaterial" Value="0" runat="server" />
            <asp:HiddenField ID="hidWayToCook" Value="0" runat="server" />
            <asp:TextBox ID="hidImagePath" Text="" runat="server" />
           
            <asp:TextBox ID="txtKeyword" CssClass="TextBox" Text="" runat="server" Visible="true"></asp:TextBox>
            <asp:TextBox ID="txtStrKeyWord" CssClass="TextBox" Text="" runat="server" Visible="true"></asp:TextBox>
            <asp:TextBox ID="txtSubjectId" CssClass="TextBox" Text="0" runat="server"></asp:TextBox>
            <asp:TextBox ID="hidImageBig" Text="" runat="server" />
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
